﻿''' <summary>
''' First page loaded into the Shell acting
''' as a home page for the application
''' </summary>
Partial Public Class Home
	Inherits NavFx.HostPage

#Region "Private members"

	''' <summary>
	''' uri for the library that contains the dynamically loaded pages
	''' </summary>
	Private libraryUri As Uri = New Uri("NavFx.NavFxDemoPagesVB.dll", UriKind.Relative)

	''' <summary>
	''' Reference to the component handling transitions from page to page
	''' </summary>
	Private navTransitor As SimpleTransitor = Nothing

	''' <summary>
	''' Helper method to load a page
	''' </summary>
	''' <param name="path">Path of the page to be loaded</param>
	Private Sub goToPage(ByVal path As String)
		Me.Navigator.GoToPage(Path, False, Me.libraryUri)
	End Sub

#End Region

#Region "Constructors"

	''' <summary>
	''' Default constructor
	''' </summary>
	Public Sub New()
		MyBase.New()

		'capture a reference to the component that handles
		'transition from page to page
		Me.navTransitor = CType(Me.Navigator.Transitor, SimpleTransitor)

		InitializeComponent()
	End Sub

#End Region

End Class
